<script>
	export default {
		onLaunch: function() {
			console.log('App Launch');
			Date.prototype.format = function (fmt) {
			    var o = {
			        "M+": this.getMonth() + 1, //月份
			        "d+": this.getDate(), //日
			        "h+": this.getHours(), //小时
			        "m+": this.getMinutes(), //分
			        "s+": this.getSeconds(), //秒
			        "q+": Math.floor((this.getMonth() + 3) / 3), //季度
			        "S": this.getMilliseconds() //毫秒
			    };
			    if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
			    for (var k in o)
			        if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
			    return fmt;
		}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="less">
	@import "./static/css/iconfont.css";
	.strong{
	  font-weight: bold
	}
	view,map{
	  transition: all 200ms
	}
	navigator{
	  transition: all 200ms
	}
	.hover-defalut{
	  background: rgba(0, 0, 0, 0.12)
	}
	.w100{
	  width: 100%;
	   margin: 0 auto
	}
	.h100{
	  height: 100%;
	}
	.w90{
	  width: 90%;
	  margin: 0 auto
	}
	.flex-col{
	  display: flex;
	  flex-direction: column;
	  justify-content: flex-start
	}
	.border-none{
	  border: none!important
	}
	.flex-al{
	  align-items: center!important
	}
	.flex-jc{
	  justify-content: center!important
	}
	.flex-sb{
	  justify-content: space-between!important
	}
	.flex-row{
	  display: flex;
	  flex-direction: row;
	  justify-content: flex-start
	}
	image{
	  display: block!important;
	  overflow:inherit;
	}
	button{
	  min-height: 0!important
	}
</style>
